﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Data;

namespace UnitTestWinRTConverters.ObjectsTestBase
{
    public class UIGridVisibilityTest : UIObjectTestBase
    {
        private readonly Grid _grid;

        public override object ConvertValue
        {
            get { return _grid.Visibility; }
        }

        public UIGridVisibilityTest(IValueConverter converter, object value, object converterParameter = null)
            : base(converter, BindingMode.OneWay, value, converterParameter)
        {
            _grid = new Grid();
            _grid.SetBinding(UIElement.VisibilityProperty, this.BindingObject);    
        }
    }
}
